import request from '@/utils/request'

// 查询应用权限列表
export function listRouter(query) {
  return request({
    url: '/gatewayadmin/router/list',
    method: 'get',
    params: query
  })
}

// 查询应用权限详细
export function getRouter(uuid) {
  return request({
    url: '/gatewayadmin/router/' + uuid,
    method: 'get'
  })
}

// 新增应用权限
export function addRouter(data) {
  return request({
    url: '/gatewayadmin/router',
    method: 'post',
    data: data
  })
}

// 修改应用权限
export function updateRouter(data) {
  return request({
    url: '/gatewayadmin/router',
    method: 'put',
    data: data
  })
}

// 删除应用权限
export function delRouter(uuid) {
  return request({
    url: '/gatewayadmin/router/' + uuid,
    method: 'delete'
  })
}
